import {Graph} from '@antv/x6'
import {createGraph} from './createGraph'
import {addBaseEvent} from './addBaseEvent'

/**
 * 流程画布
 */
export class FlowGraph {
  static graph: Graph

  static init(options: Partial<Graph.Options>): Graph {
    const graph = createGraph(options)
    addBaseEvent(graph)
    this.graph = graph
    return graph
  }
}
